package com.java8.ch05;

// Using break as a civilized from of goto
public class Break {

	public static void main(String[] args) {
		boolean t = true;
		first: {
			second: {
				third: {
					System.out.println("Before the break.");
					if (t) {
						// break out of second
						break second;
					}
					System.out.println("This won't execute");
				}
				System.out.println("This won't execute");
			}
			System.out.println("This is after second block.");
		}
	}
}
